package ccrClasses.layer2;

import ccrClasses.ICcr;

public class Directions implements ICcr {
	
	public final static String OPEN_TAG = "<Directions>";

	public final static String CLOSE_TAG = "</Directions>";
	
	private Direction direction;
	
	public Directions(Direction direction) {
		super();
		this.direction = direction;
	}


	/**
	 * @return the direction
	 */
	public Direction getDirection() {
		return direction;
	}


	/**
	 * @param direction the direction to set
	 */
	public void setDirection(Direction direction) {
		this.direction = direction;
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + direction.constructCcrString() + CLOSE_TAG);
	}

}
